import axios from 'axios'

const API_URL = "http://localhost:8080/app/users"

export const login = (users) => {
    return axios.post(`${API_URL}/login`, users)
}

export const logout = (userId) => {
    return axios.get(`${API_URL}/logout/${userId}`)
}

export const registerApi = (userData) => {
    return axios.post(`${API_URL}/regist`, userData);
};


